- 
                Notifications
    
You must be signed in to change notification settings  - Fork 236
 
Set data types for puppetdb parameters #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set data types for puppetdb parameters #411
Conversation
| 
           FWIW, I would remove the maintenance label so the change does show up in the change log and release notes.  | 
    
| 
           As open_ssl_listen_port is no longer   | 
    
| 
           is there any blocker in getting this PR merged now that's approved?  | 
    
          
 Should be good to go, I haven't had a chance to test on live node so I haven't merged. Passing all unit tests.  | 
    
| 
           Tested changes with a development environment Puppetserver. class { 'puppetdb':
  listen_port => 'localhost',
 }When data is valid, this module works as expected compiling and implementing changes. class { 'puppetdb':
  ssl_listen_port => 8000, # or '8000'
}
class { 'puppetdb::master::config':
  puppetdb_port => 8000, # or '8000'
} | 
    
Summary:
Enable data type validation for parameters in puppetdb classes and defined types. The goal is to refine user inputs to reduce risk of misconfiguration or failure to apply.
Each data type was configured based on default values supplied within the params.pp class, unit/acceptance tests and alternative values recommended in PuppetDB docs.
Changes:
Stdlib::Host,Stdlib::Port::User)Potential for Breaking Change:
Variantto support historicalStringusage withPatternmatchingRelated Issues:
resolves #105
Testing: